import requests


class Register:

    def __init__(self):
        self.session = requests.session()

    def register_stream_user(self):
        url = "http://api-bnd.yuntiancloud.com:18088/v1/servo/register"
        data = {"app_userid": "18118758151", "app_user_type": 999, "app_biz_type": 69}
        res = self.session.post(url=url, json=data)
        print(res.json())

    def register_stream_user_beta08(self):
        url = "http://beta-08-api-bnd.yuntiancloud.com:18088/v1/servo/register"
        data = {"app_userid":"18118758148", "app_user_type":999,"app_biz_type":99}
        res = self.session.post(url=url, json=data)
        print(res.json())


if __name__ == '__main__':
    Register().register_stream_user_beta08()
